from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver=webdriver.Edge()
driver.maximize_window()
driver.get('https://www.jd.com/')
sleep(5)

#点击请登录
driver.find_element(By.XPATH,'//*[@id="ttbar-login"]/a[1]').click()
sleep(5)

#输入账号
driver.find_element(By.XPATH,'//*[@id="loginname"]').send_keys('17733058407')
sleep(5)

#输入密码
driver.find_element(By.ID,'nloginpwd').send_keys('li10140910')
sleep(5)

#点击登录
driver.find_element(By.XPATH,'//*[@id="loginsubmit"]').click()
sleep(10)